package com.logistics.modules.sys.service.impl;

import cn.hutool.core.convert.Convert;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.logistics.common.utils.PageUtils;
import com.logistics.common.utils.Query;

import com.logistics.modules.sys.dao.DatadictionaryclassificationDao;
import com.logistics.modules.sys.entity.DatadictionaryclassificationEntity;
import com.logistics.modules.sys.service.DatadictionaryclassificationService;


@Service("datadictionaryclassificationService")
public class DatadictionaryclassificationServiceImpl extends ServiceImpl<DatadictionaryclassificationDao, DatadictionaryclassificationEntity> implements DatadictionaryclassificationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DatadictionaryclassificationEntity> page =
                new Query<DatadictionaryclassificationEntity>().getPage(params);
        this.baseMapper.queryPage(page, Convert.toStr(params.get("name")));
        return new PageUtils(page);
    }

    @Override
    public List<DatadictionaryclassificationEntity> allList() {
        return this.baseMapper.selectList(null);
    }

}